package edu.ahut.designpattern.factory;

public class Application {
    public static void main(String[] args) {
        Shape[] shapes=new Shape[]{
                ShapeFactory.getInstance().getShape("edu.ahut.designpattern.factory.Circle"),
                ShapeFactory.getInstance().getShape("edu.ahut.designpattern.factory.Rectangle"),
        };
        for(Shape shape:shapes){
            shape.draw();
        }
    }
}
//interface  A {}
//interface  B{}
//interface AB extends A,B{}